package vn.vfriends.games.service.impl;

import java.util.List;
import javax.inject.Inject;
import vn.vfriends.games.jpa.controller.GameJpaController;
import vn.vfriends.games.jpa.entity.Game;
import vn.vfriends.games.service.GameService;

/**
 *
 * @author tuan@vfriends.vn
 */
public class GameServiceImpl implements GameService {

    @Inject private GameJpaController gameController;
    
    @Override
    public void create(Game game) throws Exception {
        gameController.create(game);
    }

    @Override
    public void edit(Game game) throws Exception {
        gameController.edit(game);
    }

    @Override
    public void destroy(Long id) throws Exception {
        gameController.destroy(id);
    }

    @Override
    public List<Game> findGames() {
        return gameController.findGames();
    }
    
    @Override
    public List<Game> findDisplayGames() {
        return gameController.findDisplayGames();
    }

    @Override
    public Game findGame(Long id) {
        return gameController.findGame(id);
    }

    @Override
    public int getGameCount() {
        return gameController.getGameCount();
    }

}
